package common.common.Util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;
import org.springframework.stereotype.Component;

@Data
@ToString
@AllArgsConstructor
public class ResponseBean {

    private int code;

    private String msg;

    private Object date;


    public ResponseBean set(int code, String msg, Object date) {
        this.code = code;
        this.msg = msg;
        this.date = date;
        return new ResponseBean(code,msg,date);
    }
}
